/**
 * Copyright 2025 walter
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.walter.gitee.constant;

/**
 * API请求地址常量
 * @author walter
 * @date 2025/9/13
 */
public class RequestUrlConstant {
    public static final String auth_url = "https://gitee.com/oauth/authorize?client_id=%s&redirect_uri=%s&response_type=code";
    public static final String auth_state_url = "https://gitee.com/oauth/authorize?client_id=%s&redirect_uri=%s&response_type=code&state=%s";
    public static final String scope_auth_url = "https://gitee.com/oauth/authorize?client_id=%s&redirect_uri=%s&response_type=code&scope=%s";
    public static final String token_url = "https://gitee.com/oauth/token?grant_type=authorization_code&code=%s&client_id=%s&redirect_uri=%s&client_secret=%s";
    public static final String refresh_token_url = "https://gitee.com/oauth/token?grant_type=refresh_token&refresh_token=%s";

    /**
     * 获取授权用户的邮箱
     */
    public static final String emails_url = "https://gitee.com/api/v5/emails?access_token=%s";
    /**
     * 获取授权用户的资料
     */
    public static final String user_url = "https://gitee.com/api/v5/user?access_token=%s";
}
